package io.renren.modules.echarts.service.impl;


import io.renren.modules.echarts.ResVo.ScatterVo;
import io.renren.modules.echarts.ResVo.StripVo;
import io.renren.modules.echarts.dao.RightDao;
import io.renren.modules.echarts.entity.ScatterEntity;
import io.renren.modules.echarts.entity.StripEntity;
import io.renren.modules.echarts.service.RightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StripServiceImpl implements RightService {
    @Autowired
    private RightDao rightDao;
    @Override
    public List<StripVo> getStripAllData() {
        List<StripEntity> stripAllData = rightDao.getStripAllData();
        return StripVo.build(stripAllData);
    }

    @Override
    public List<ScatterVo> getScatterAllData() {
        List<ScatterEntity> scatterAllData = rightDao.getScatterAllData();
        return ScatterVo.build(scatterAllData);
    }
}
